import Test from "@views/Test";
import Home from "./Home/home";
import Login from "./Login/Login";
import Car from "./Car/Car";
import PersonCenter from "./PersonCenter/PersonCenter";
import { ProductDetail } from "./ProductDetail/ProductDetail";
import Order from "./Order/Order";

export const routes = [
    {
        path: '/Test',
        component: Test,
    },
    {
        path: '/',
        component: Home,
        exact:true
    },
    {
        path: '/Login',
        component: Login,
        exact:true
    },
    {
        path: '/Car',
        component: Car,
        exact:true
    },
    {
        path: '/PersonCenter',
        component: PersonCenter,
        exact:true
    },
    {
        path: '/ProductDetail/:productId',
        component: ProductDetail,
        exact:false
    },
    {
        path: '/Order',
        component: Order,
        exact:true
    },
]

export const links = [
    {
        path: '/Test',
        title: '测试',
    },
    {
        path: '/',
        title: '首页',
    },
    {
        path: '/Car',
        title: '购物车',
    },
    {
        path: '/Order',
        title: '订单管理',
    },
    {
        path: '/PersonCenter',
        title: '个人中心',
    },
]